package com.felix.service.impl;

import com.felix.dubbo.service.DemoDubboService;
import com.felix.service.DemoService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * @program: DubboParent
 * @ClassName DemoServiceImpl
 * @description:
 * @author: yaoguipei
 * @create: 2022-01-18 22:10
 * @Version 1.0
 **/
@Service
public class DemoServiceImpl implements DemoService {

    //@Reference 该注解代替了大量rmi调用
    @Reference
    private DemoDubboService demoDubboService;

    @Override
    public String demo() {
        return demoDubboService.demo("你好");
    }
}
